home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 June / Software of the Month Club 1996 June.iso / pc / dos / edu / colaid / setup.dta < prev    next >
Text File  |  1996-03-10  |  5KB  |  116 lines

  1. #SETUP.DTA, Updated 3/10/96
  2. BANNER " College Aid Calculator 96-7 (TM) ... Copyright 1996"
  3. SET %DiskSpaceNeeded "10000000"
  4. MSG "WELCOME to College Aid Calculator 96-7." "" "YOU MAY COPY THIS PROGRAM." "" "PERMISSION is hereby granted for you to distribute CAC." "Pass CAC along to friends with college in their future."  "The README.TXT file has instructions on how to do this."
  5. IF EQUAL %Source "C:\COL_AID"
  6. MSG "NOTE: If you are installing CAC from the COL_AID directory," "     copy all of the files to two disks before continuing" "       so you'll have a backup or a copy to give to a friend." "" "(SETUP deletes itself when run from the COL_AID directory.)"
  7. ENDIF
  8. :MAINMENU
  9. MENU %InstallMenuSel "Install College Aid Calculator;Exit to DOS""Installation Options"
  10. IF EQUAL %InstallMenuSel "Exit to DOS"
  11.     ASK %EXIT "Are you sure you want to exit to DOS?"
  12.     IF YES  %EXIT 
  13.     END
  14.     ENDIF
  15.     IF NO %EXIT 
  16.     GOTO MAINMENU   
  17.     ENDIF 
  18. ENDIF
  19. IF EQUAL %InstallMenuSel "Install College Aid Calculator" 
  20. SET %BOOT "C:"
  21. SET %DestExe "C:\COL_AID"
  22. SET %DATEFMT "American"
  23. SET %NUMFMT "American"
  24. SET %CURNAME "Dollars"
  25. SET %CURSYM "$"
  26. SET %DATESEP "/"
  27. SET %ShareMode "MULTI"
  28. SET %NoSh ""
  29. SET %Set "s"
  30. SET %WinPath "C:\WINDOWS"
  31. SET %chc "X"    
  32.     GETPATH %DestExe CREATE "Please enter the drive and path INTO which you wish to" "install College Aid Calculator 96-7."
  33. DISKSPACE %SPACE %DestExe 10000000
  34.     IF NO %SPACE
  35.        BEEP
  36.        ERROR "College Aid Calculator 96-6 can not be installed." "You need 10 MB of free disk space to install College Aid Calculator 96-7," "which is recuced to 6.5 MB after installation."
  37.        END
  38.     ENDIF
  39. ENDIF
  40. IF EQUAL %InstallMenuSel "Install College Aid Calculator" 
  41. ENDIF
  42. FPUCHECK %FpuStat
  43.   IF NO %FpuStat
  44.       ASK %RunWin "Are you planning to run the College Aid Calculator 96-7 from Windows?"
  45.       IF YES %RunWin
  46.       GETPATH %WinPath EXISTS "Please enter the directory" "into which you have installed Windows."
  47.       FILESCAN %WinPath\SYSTEM.INI "WEMU387.386" %EmuStat
  48.     IF NO %EmuStat
  49.         MSG "WARNING!!!" "Setup has determined that this machine does not have a math coprocessor."
  50.         MSG "The SYSTEM.INI file has been edited to load a floating point emulator to" "allow you to run College Aid Calculator from Windows." "A backup (SYSTEM.BAK) has been saved to the COL_AID directory." 
  51.         COPY %WinPath\SYSTEM.INI    %DestExe\SYSTEM.BAK
  52.         INSERTLINE %WinPath\SYSTEM.INI "[386Enh]" "Device=%DestExe\wemu387.386"
  53.     ENDIF
  54.       ENDIF
  55.   ENDIF
  56. BAT %DestExe\A4.VMC "minmem = 1024" "maxmem = 4096" "virtualsize = 4096" "swapname = %DestExe\A4.SWP"
  57. IF EQUAL %Source %DestExe
  58.   COPY %DestExe\COL_AID.1               %DestExe\COL_AID.ZIP
  59.   PROGRESS 20
  60.   APPEND %DestExe\COL_AID.2             %DestExe\COL_AID.ZIP
  61.   DEL %DestExe\COL_AID.2
  62.   DEL %DestExe\COL_AID.1
  63.   PROGRESS 35
  64.   UNZIP %DestExe\COL_AID.ZIP            %DestExe\ *.*
  65.   PROGRESS 65
  66.   DEL %DestExe\COL_AID.ZIP
  67.   UNZIP %DestExe\BOOKS.ZIP              %DestEXe\ *.*
  68.   DEL %DestExe\BOOKS.ZIP
  69.   DEL %DestExe\PKUNZIP.EXE              
  70.   DEL %DestExe\SETUP.EXE                
  71.   DEL %DestExe\SETUP.DTA                
  72.   DEL %DestExe\GETODO.BAT
  73.   DEL %DestExe\GET_RDME.TXT
  74.   PROGRESS 80
  75.     GOTO COPYDONE
  76. ELSE 
  77.   COPY %Source\PKUNZIP.EXE              %DestExe\PKUNZIP.EXE
  78.   COPY %Source\A4V6RT.NET               %DestExe\A4V6RT.NET
  79.   COPY %Source\SETUP.EXE                %DestExe\SETUP.EXE
  80.   COPY %Source\SETUP.DTA                %DestExe\SETUP.DTA
  81.   COPY %Source\README.TXT               %DestExe\README.TXT
  82.   COPY %Source\BOOKS.ZIP                %DestExe\BOOKS.ZIP 
  83.   PROGRESS 15
  84.   COPY %Source\COL_AID.2                %DestExe\COL_AID.2
  85.   PROGRESS 30
  86. DISK "Disk 2"
  87.   COPY %Source\COL_AID.1                %DestExe\COL_AID.ZIP
  88.   PROGRESS 50
  89.   APPEND %DestExe\COL_AID.2             %DestExe\COL_AID.ZIP
  90.   PROGRESS 65
  91.   UNZIP %DestExe\COL_AID.ZIP            %DestExe\ *.*
  92.   UNZIP %DestExe\BOOKS.ZIP              %DestEXe\ *.*
  93.   DEL %DestExe\COL_AID.2
  94.   DEL %DestExe\PKUNZIP.EXE              
  95.   DEL %DestExe\SETUP.EXE                
  96.   DEL %DestExe\SETUP.DTA                
  97.   DEL %DestExe\COL_AID.ZIP
  98.   DEL %DestExe\BOOKS.ZIP
  99. :COPYDONE
  100. ENDIF
  101.   MAKEDFL %DESTEXE %STARTUPP %STARTUPD %SET %CURNAME %CURSYM %DATESEP %NUMFMT %DATEFMT %SHAREMODE
  102.   PROGRESS 97
  103.  BEEP
  104.   FILESCAN "%Boot\AUTOEXEC.BAT" "SHARE" %ShareStat
  105.   IF NO %ShareStat
  106.     ASK %NoSh "SHARE is not loaded in your AUTOEXEC.BAT file." "CAC needs SHARE and can install it for you." "A backup of your AUTOEXEC.BAT (AUTOEXEC.BAK) will be placed" "in the COL_AID directory. Would you like CAC to install SHARE?"
  107.     IF YES %NoSh
  108.        COPY %Boot\AUTOEXEC.BAT           %DestExe\AUTOEXEC.BAK
  109.        APPENDLINE "%Boot\AUTOEXEC.BAT" "C:\DOS\SHARE.EXE /F:5000 /L:300"
  110.     ENDIF
  111.   ENDIF
  112. CLS
  113. BEEP
  114. RUN readme.bat
  115. END
  116.